<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

	<h:head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title>
			<ui:insert name="titulo">Sistema de Automacao Comercial de Veiculos Automotores</ui:insert>
		</title>
		<link href="#{config.css}" rel="stylesheet" type="text/css" />
		
	</h:head>

	<h:body class="principal">
		
		<!-- SPINNING -->
		<p:ajaxStatus onstart="statusDialog.show();" onsuccess="statusDialog.hide();" />
		<p:dialog modal="true" widgetVar="statusDialog"	draggable="false" closable="false" resizable="false" showHeader="false">
			<p:graphicImage value="#{controle.diretorioImagens}/spinner.gif" styleClass="spinner" />
		</p:dialog>
		
		<!-- MENU -->
		<div id="div_menuSuperior">
		
			<h:form>
				<p:menubar styleClass="menubar">
	
					<p:submenu label="Sistema" icon="ui-icon-document"	styleClass="submenu">
						<p:submenu label="Manutencao" icon="ui-icon-contact">
							<p:submenu label="Tabelas" icon="ui-icon-contact">
								<p:menuitem value="Fabricante" url="#{config.xhtml}/fabricanteVeiculo.faces" />
								<p:menuitem value="Veiculo" url="#{config.xhtml}/veiculo.faces" />
							</p:submenu>
						</p:submenu>
					</p:submenu>
	
					<p:submenu label="Vendas" icon="ui-icon-document" styleClass="submenu">
						<p:submenu label="Cadastro" icon="ui-icon-contact">
							<p:menuitem value="Carro" url="../xhtml/form_dialog.faces"/>
						</p:submenu>
					</p:submenu>
	
					<p:menuitem value="Inicio" url="#{facesContext.externalContext.requestPathInfo} #{controleAuxilioWeb.diretorioCss}/faces/template/template.faces" />
					<p:menuitem value="Inicio" url="#{controleAuxilioWeb.diretorioTemplate}template.faces" />
				</p:menubar>
			</h:form>
		
				<br /> <br />
		</div>
		
		
		<!-- CORPO -->
		<div id="div_corpo">
			<h:form>
				<ui:insert name="corpo" />
			</h:form>
		</div>
		
		<!-- RODAPE -->		
		<div id="div_rodape">
			<p:dock>
				<p:menuitem label="Finder" icon="../imagens/finder.png" url="#" />
				<p:menuitem label="Safari" icon="../imagens/safari.png" url="#" />
				<p:menuitem label="iTunes" icon="../imagens/itunes.png" url="#" />
				<p:menuitem label="iChat" icon="../imagens/ichat.png" url="#" />
				<p:menuitem label="Trash" icon="../imagens/trash.png" url="#" />
				<p:menuitem label="Finder" icon="../imagens/finder.png" url="#" />
				<p:menuitem label="Safari" icon="../imagens/safari.png" url="#" />
				<p:menuitem label="iTunes" icon="../imagens/itunes.png" url="#" />
				<p:menuitem label="iChat" icon="../imagens/ichat.png" url="#" />
				<p:menuitem label="Trash" icon="../imagens/trash.png" url="#" />
			</p:dock>
		</div>
	</h:body>
</html>
